<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>headset.model.HeaDSETDicom'.HeaDSETDicom</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="headset-module.html">Package&nbsp;headset</a> ::
        <a href="headset.model-module.html">Package&nbsp;model</a> ::
        <a href="headset.model.HeaDSETDicom%27-module.html">Module&nbsp;HeaDSETDicom'</a> ::
        Class&nbsp;HeaDSETDicom
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class HeaDSETDicom</h1><p class="nomargin-top"><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_headset__27" name="uml_class_diagram_for_headset__27">
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#BONE_EXTRACTOR" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.BONE_EXTRACTOR" alt="" coords="17,639,601,657"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_COLOR" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.DEFAULT_COLOR" alt="" coords="17,657,601,676"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_OPACITY" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.DEFAULT_OPACITY" alt="" coords="17,676,601,695"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_REDUCTION" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.DEFAULT_REDUCTION" alt="" coords="17,695,601,713"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#NORMAL_FEATURE_ANGLE" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.NORMAL_FEATURE_ANGLE" alt="" coords="17,713,601,732"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#SMOOTHER_ITERATIONS" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.SMOOTHER_ITERATIONS" alt="" coords="17,732,601,751"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#SMOOTHER_RELAXATION" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.SMOOTHER_RELAXATION" alt="" coords="17,751,601,769"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#GetDirectory" title="Returns the directory that was used to create the dicom geom." alt="" coords="17,772,601,791"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#GetPatientName" title="Returns the name of the patient that was used to create ths geom." alt="" coords="17,791,601,809"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#IsFailed" title="headset.model.HeaDSETDicom&#39;.HeaDSETDicom.IsFailed" alt="" coords="17,809,601,828"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#TypeClone" title="Since cloning a dicom geom makes no sense this method returns None." alt="" coords="17,828,601,847"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#__init__" title="Creates the geom from the information provided in the directory." alt="" coords="17,847,601,865"/>
<area shape="rect" href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html" title="Loads a dicom directory and modifies it to make a reasonable mesh of it for usage in HeaDSET." alt="" coords="16,621,603,867"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#BOX" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.BOX" alt="" coords="235,28,384,47"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#COLOR" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.COLOR" alt="" coords="235,47,384,65"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#CONE" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.CONE" alt="" coords="235,65,384,84"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#CYLINDER" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.CYLINDER" alt="" coords="235,84,384,103"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DEFSIZE" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.DEFSIZE" alt="" coords="235,103,384,121"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DICOM" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.DICOM" alt="" coords="235,121,384,140"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#ELLIPSOID" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.ELLIPSOID" alt="" coords="235,140,384,159"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GEOM_ID" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.GEOM_ID" alt="" coords="235,159,384,177"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#LABEL" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.LABEL" alt="" coords="235,177,384,196"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#OPACITY" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.OPACITY" alt="" coords="235,196,384,215"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#ORIENTATION" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.ORIENTATION" alt="" coords="235,215,384,233"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#POSITION" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.POSITION" alt="" coords="235,233,384,252"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.SCALE" alt="" coords="235,252,384,271"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE_FACTOR" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.SCALE_FACTOR" alt="" coords="235,271,384,289"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE_THRESHOLD" title="headset.model.HeaDSETGeom&#39;.HeaDSETGeom.SCALE_THRESHOLD" alt="" coords="235,289,384,308"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#AddBoxWidget" title="Adds a new boxwidget to the list of boxwidgets." alt="" coords="235,311,384,329"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#Clone" title="Clones the geom." alt="" coords="235,329,384,348"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DisableBoxWidgets" title="Disables the boxwidgets assigned to the geom." alt="" coords="235,348,384,367"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#EnableBoxWidgets" title="Enables the boxwidgets that are assigned to this geom." alt="" coords="235,367,384,385"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetActor" title="Returns the VTK actor that this geom wraps." alt="" coords="235,385,384,404"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetAxes" title="Returns the vtk axes actor for this geom." alt="" coords="235,404,384,423"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetColor" title="Returns the color component." alt="" coords="235,423,384,441"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetID" title="Returns the ID of the geom." alt="" coords="235,441,384,460"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetLabel" title="Returns the label of the geom." alt="" coords="235,460,384,479"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetOpacity" title="Returns the opacity of the geom." alt="" coords="235,479,384,497"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetOrientation" title="Returns the current orientation of the geom." alt="" coords="235,497,384,516"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetPosition" title="Returns the position of the geom." alt="" coords="235,516,384,535"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetScale" title="Returns the scale of the geom." alt="" coords="235,535,384,553"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#UpdateBoxWidgets" title="Updates the boxwidgets so they are close to the geom." alt="" coords="235,572,384,591"/>
<area shape="rect" href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html" title="The HeadDSETGeom is the HeaDSET wraper for 3 dimensional objects in the system." alt="" coords="233,11,385,592"/>
</map>
  <img src="uml_class_diagram_for_headset__27.gif" alt='' usemap="#uml_class_diagram_for_headset__27" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Loads a dicom directory and modifies it to make a reasonable mesh of 
  it for usage in HeaDSET.</p>
  <p>The code is inspired from the opensource software Osirix. The defaults
  are chosen too closely match theirs.</p>
  <p>Due to the length of the operations involved in creating the geom a 
  progress bar is show during the geom creation.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#GetDirectory" class="summary-sig-name">GetDirectory</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns the directory that was used to create the dicom geom.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.GetDirectory">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#GetPatientName" class="summary-sig-name">GetPatientName</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns the name of the patient that was used to create ths geom.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.GetPatientName">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#IsFailed" class="summary-sig-name">IsFailed</a>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.IsFailed">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#TypeClone" class="summary-sig-name">TypeClone</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Since cloning a dicom geom makes no sense this method returns None.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.TypeClone">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#_OnFail" class="summary-sig-name" onclick="show_private();">_OnFail</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">widget</span>,
        <span class="summary-sig-arg">eventString</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom._OnFail">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">directory</span>,
        <span class="summary-sig-arg">label</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">Dicom</code><code class="variable-quote">'</code></span>,
        <span class="summary-sig-arg">extractorValue</span>=<span class="summary-sig-default">300</span>,
        <span class="summary-sig-arg">dicomReduction</span>=<span class="summary-sig-default">0.95</span>,
        <span class="summary-sig-arg">smoothing</span>=<span class="summary-sig-default">20</span>,
        <span class="summary-sig-arg">color</span>=<span class="summary-sig-default"><code class="variable-group">(</code>0.9<code class="variable-op">, </code>0.9<code class="variable-op">, </code>0.9<code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">opacity</span>=<span class="summary-sig-default">0.5</span>)</span><br />
      Creates the geom from the information provided in the directory.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html">HeaDSETGeom'.HeaDSETGeom</a></code></b>:
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#AddBoxWidget">AddBoxWidget</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#Clone">Clone</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DisableBoxWidgets">DisableBoxWidgets</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#EnableBoxWidgets">EnableBoxWidgets</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetActor">GetActor</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetAxes">GetAxes</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetColor">GetColor</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetID">GetID</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetLabel">GetLabel</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetOpacity">GetOpacity</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetOrientation">GetOrientation</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetPosition">GetPosition</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetScale">GetScale</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GetVisibility">GetVisibility</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#IsInstrument">IsInstrument</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#Save">Save</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetColor">SetColor</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetInstrument">SetInstrument</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetInvisibile">SetInvisibile</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetLabel">SetLabel</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetOpacity">SetOpacity</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetOrientation">SetOrientation</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetPosition">SetPosition</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetScale">SetScale</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetVisibile">SetVisibile</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SetVisibility">SetVisibility</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#TypeCopy">TypeCopy</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#Update">Update</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#UpdateAxes">UpdateAxes</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#UpdateBoxWidgets">UpdateBoxWidgets</a></code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html">HeaDSETGeom'.HeaDSETGeom</a></code></b> (private):
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#_EndInteractionCallback" onclick="show_private();">_EndInteractionCallback</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#_InteractionCallback" onclick="show_private();">_InteractionCallback</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#_StartInteractionCallback" onclick="show_private();">_StartInteractionCallback</a></code>
      </p></div>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#BONE_EXTRACTOR" class="summary-name">BONE_EXTRACTOR</a> = <code title="300">300</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_COLOR" class="summary-name">DEFAULT_COLOR</a> = <code title="(0.9, 0.9, 0.9)"><code class="variable-group">(</code>0.9<code class="variable-op">, </code>0.9<code class="variable-op">, </code>0.9<code class="variable-group">)</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_OPACITY" class="summary-name">DEFAULT_OPACITY</a> = <code title="0.5">0.5</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#DEFAULT_REDUCTION" class="summary-name">DEFAULT_REDUCTION</a> = <code title="0.95">0.95</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#NORMAL_FEATURE_ANGLE" class="summary-name">NORMAL_FEATURE_ANGLE</a> = <code title="120">120</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#SMOOTHER_ITERATIONS" class="summary-name">SMOOTHER_ITERATIONS</a> = <code title="20">20</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="headset.model.HeaDSETDicom%27.HeaDSETDicom-class.html#SMOOTHER_RELAXATION" class="summary-name">SMOOTHER_RELAXATION</a> = <code title="0.05">0.05</code>
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html">HeaDSETGeom'.HeaDSETGeom</a></code></b>:
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#BOX">BOX</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#COLOR">COLOR</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#CONE">CONE</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#CYLINDER">CYLINDER</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DEFSIZE">DEFSIZE</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#DICOM">DICOM</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#ELLIPSOID">ELLIPSOID</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#GEOM_ID">GEOM_ID</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#LABEL">LABEL</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#OPACITY">OPACITY</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#ORIENTATION">ORIENTATION</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#POSITION">POSITION</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE">SCALE</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE_FACTOR">SCALE_FACTOR</a></code>,
      <code><a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#SCALE_THRESHOLD">SCALE_THRESHOLD</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="GetDirectory"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetDirectory</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.GetDirectory">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns the directory that was used to create the dicom geom.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>The directory of the original dicom data.</dd>
  </dl>
</td></tr></table>
</div>
<a name="GetPatientName"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetPatientName</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.GetPatientName">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns the name of the patient that was used to create ths geom.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>The patient name.</dd>
  </dl>
</td></tr></table>
</div>
<a name="IsFailed"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">IsFailed</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.IsFailed">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="TypeClone"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">TypeClone</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.TypeClone">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Since cloning a dicom geom makes no sense this method returns 
  None.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>None</dd>
  </dl>
</td></tr></table>
</div>
<a name="_OnFail"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_OnFail</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">widget</span>,
        <span class="sig-arg">eventString</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom._OnFail">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">directory</span>,
        <span class="sig-arg">label</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">Dicom</code><code class="variable-quote">'</code></span>,
        <span class="sig-arg">extractorValue</span>=<span class="sig-default">300</span>,
        <span class="sig-arg">dicomReduction</span>=<span class="sig-default">0.95</span>,
        <span class="sig-arg">smoothing</span>=<span class="sig-default">20</span>,
        <span class="sig-arg">color</span>=<span class="sig-default"><code class="variable-group">(</code>0.9<code class="variable-op">, </code>0.9<code class="variable-op">, </code>0.9<code class="variable-group">)</code></span>,
        <span class="sig-arg">opacity</span>=<span class="sig-default">0.5</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.model.HeaDSETDicom%27-pysrc.html#HeaDSETDicom.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Creates the geom from the information provided in the directory. The 
  algoritm first loads the files. Then it filters the contours of the 
  volume. This contour is triangulated and decimate to generate a mesh. 
  This mesh is smoothed to get a nicer looking result. The generated mesh 
  is then put in our vtk actor.</p>
  <p>Most arguments have sensible defaults.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>directory</code></strong> - The location of the dicom directory.s</li>
        <li><strong class="pname"><code>label</code></strong> - The desired name for the dicom</li>
        <li><strong class="pname"><code>extractorValue</code></strong> - The value that is extract sensible data from the dicom images. 
          (skin:-500, bone:300, metal:500)</li>
        <li><strong class="pname"><code>dicomReduction</code></strong> - The amount the reduction. Should remove nearly everything at 1 
          and should do nothing at 0.</li>
        <li><strong class="pname"><code>smoothing</code></strong> - Number of smoothing passes.</li>
        <li><strong class="pname"><code>color</code></strong> - The desired color for this geom.</li>
        <li><strong class="pname"><code>opacity</code></strong> - The desired opacity for this geom.</li>
    </ul></dd>
    <dt>Overrides:
        <a href="headset.model.HeaDSETGeom%27.HeaDSETGeom-class.html#__init__">HeaDSETGeom'.HeaDSETGeom.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
<a name="section-ClassVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="BONE_EXTRACTOR"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">BONE_EXTRACTOR</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
300
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="DEFAULT_COLOR"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">DEFAULT_COLOR</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">(</code>0.9<code class="variable-op">, </code>0.9<code class="variable-op">, </code>0.9<code class="variable-group">)</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="DEFAULT_OPACITY"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">DEFAULT_OPACITY</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
0.5
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="DEFAULT_REDUCTION"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">DEFAULT_REDUCTION</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
0.95
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="NORMAL_FEATURE_ANGLE"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">NORMAL_FEATURE_ANGLE</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
120
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="SMOOTHER_ITERATIONS"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">SMOOTHER_ITERATIONS</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
20
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="SMOOTHER_RELAXATION"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">SMOOTHER_RELAXATION</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
0.05
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0.1 on Wed Feb 25 12:57:57 2009</a>
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
